home *** CD-ROM | disk | FTP | other *** search
- Path: news.lei.net!Psidmvl
- From: sidmvl@pixi.com
- Newsgroups: comp.lang.c++
- Subject: Re: Newbie question
- Date: 14 Apr 1996 05:14:41 GMT
- Organization: The SenseMedia Network, http://sensemedia.net/, info@sensemedia.net
- Message-ID: <4kq1k1$253@ginger.lei.net>
- References: <4kq1d5$253@ginger.lei.net>
- NNTP-Posting-Host: mothra16.pixi.com
-
- oops Email address was messed up it is corrected now. Thanks.
-
- I just started a C++ class in school, and I was writing my first project. I
- have to include a char, double, int, and a string. The program compiled just
- fine, but when I run the program I get a fatal error that says I have a float
- overflow. I know I must be missing something extremely basic, but the help
- files were no help. The input was digit with two decimal places. I used the
- following statement to define the precision.
- cout.setf(ios::showpoint);
- cout.precision (4);
-
- Any help would be appreciated.
-
- Everyone was once a Newbie........I think.
-